<template>
	<view class="title" @tap.stop="Jump(`${url}`)">
		<view class="left">
			<view class="blockInfo">
			</view>
			<view class="">
				{{tit}}
			</view>
		</view>
		<view class="right">
			<u-icon name="arrow-right"></u-icon>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			tit:{
				type:String,
				default:''
			},
			url:{
				type:String,
				default:''
			}
		},
		data() {
			return {

			};
		},
		methods:{
			// 跳转
			Jump(url){
				if(url.indexOf('tabBar', 0) == -1){
					uni.navigateTo({
						url: url
					})
				}else{
					uni.switchTab({
						url: url
					});	
				}
			},
		}
	}
</script>

<style lang="scss" scoped>
	.title {
		display: flex;
		align-items: center;
		justify-content: space-between;

		.left {
			display: flex;
			align-items: center;
			font-family: PingFang SC;
			font-size: 32rpx;
			font-weight: 500;
			line-height: 20px;
			letter-spacing: 0px;
			text-align: left;
			color: #313131;

			.blockInfo {
				width: 6rpx;
				height: 24rpx;
				margin-right: 10rpx;
				background-color: #466EC5;

			}
		}
	}
</style>